package cn.kgc.springcloud09.controller;

import cn.kgc.springcloud09.client.HystrixClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/2/21
 * @Description:
 */
@RequestMapping("ho")
@RestController
public class HystrixOpenFeignController {

    @Autowired
    private HystrixClient hystrixClient;

    @RequestMapping("m1")
    public String method01(Integer id){
        String s = hystrixClient.method1(id);
        return "HystrixOpenFeignController ok" + s ;
    }
}
